import request from '@/utils/request'

export function detail(data) {
  return request({
    url: 'api/core/message/detail',
    method: 'get',
    data
  })
}

export function info(data) {
  return request({
    url: 'api/core/message/info',
    method: 'get',
    data
  })
}

export function list() {
  return request({
    url: 'api/core/message/list',
    method: 'get'
  })
}

export function submit(data) {
  return request({
    url: 'api/core/message/submit',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: 'api/core/message/update',
    method: 'post',
    data
  })
}

export function remove(id) {
  return request({
    url: 'api/core/message/remove',
    method: 'post',
    data: id
  })
}
